<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="com.csmy.example.contain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
</head>
<body>
	<form action="UpdateProductServlet" method="post">
	<input type="hidden" name="id" value="${product.id }"/>
	<table>
		<tr>
			<td>商品名称</td>
			<td><input type="text" name="name" readonly="readonly" value="${product.name }"/></td>
			<td>商品价格：</td>
			<td><input type="text" name="price" value="${product.price }"/></td>
		</tr>
		<tr>
			<td>商品数量：</td>
			<td><input type="text" name="pnum" value="${product.pnum }"/></td>
			<td>商品类别</td>
			<td><select name="category">
				<option>文学</option>
				<option>动漫</option>
			</select></td>
		</tr>
		<tr>
			<td>商品图片</td>
			<td colspan="3">
				<input name="imgurl" type="file"/>
			</td>
		</tr>
		<tr>
			<td>商品描述</td>
			<td colspan="3">
				<textarea rows="3" cols="60" name="description">${product.description }</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<input type="submit" value="确定"/>
				<input type="button" value="重置"/>
				<input type="button" onclick="history.go(-1)" value="返回"/>
			</td>
		</tr>
	</table>
	</form>
</body>
</html>